package xingxian;

/**
 * Created by guo on 2017/9/28.
 */
public class Grade {
    public static void main(String[] args) {
        int[]grade=new int[]{88,85,74,96,54,89,68,78,81,75};
        for(int i=0;i<grade.length;i++)
        {
            for(int j=0;j<grade.length-i-1;j++)
            {
                if(grade[j]<grade[j+1])
                {
                    int temp=grade[j];
                    grade[j]=grade[j+1];
                    grade[j+1]=temp;
                }
            }
        }
        for(int t=0;t<grade.length;t++)
        {
            System.out.println(grade[t]);
        }
    }
}
